package com.tjetc.dao;

import com.tjetc.domain.News;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface NewsRepository extends MongoRepository<News,Integer> {


    Page<News> findBySid(Pageable pageable, Integer sid);

    List<News> findBySid(Integer sid);
}
